package com.mokee.android.database;

import java.util.HashMap;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = UserTable.tableName)
public class UserTable {
	public final static String tableName = "user";
	// 用户的基本信息
	public final static String DT_ID = "ID";
	public final static String DT_User_HeadPicUrl = "User_headpic_url";
	public final static String DT_User_LoinNumber = "User_login_number";
	public final static String DT_User_NickName = "User_nick_name";
	public final static String DT_User_Phone = "User_phone";
	public final static String DT_User_IDCard = "User_idcard";
	// 船的基本信息
	public final static String DT_Ship_Name = "Ship_name";
	public final static String DT_Ship_Type = "Ship_type";
	public final static String DT_Ship_Weight_ORI = "Ship_weight_ori";// 以吨位单位
	public final static String DT_Ship_RegisterNum = "Ship_register_num";
	//航行信息
	public final static String DT_Ship_Weight_NOW = "Ship_weight_now";//现吨位
	public final static String DT_Ship_LoadType = "Ship_load_type";
	public final static String DT_Ship_SafeLevel = "Ship_safe_level";
	public final static String DT_Ship_SailStart = "Ship_sail_start";
	public final static String DT_Ship_SailEnd = "Ship_sail_end";
	public final static String DT_Ship_SailOri = "Ship_Sail_orientation";
	public final static String DT_Ship_GoodsName = "Ship_goods_name";
	//进程
	public final static String DT_Ship_Process = "process";
	public final static String DT_Ship_Order_Number = "Order_number";
	public final static String DT_Ship_Pay_Type = "Pay_type";
	public final static String DT_Ship_Pay_Money = "Pay_money";
	public final static String DT_Ship_Ticket_Number = "Ticket_number";
	
	
	@DatabaseField(columnName = DT_ID, generatedId = true)
	private int id;
	public int getId() { return id; }
	
	@DatabaseField(columnName = DT_User_HeadPicUrl)
	private String userHeadPicUrl;
	public String getUserHeadPicUrl() { return userHeadPicUrl; }
	public UserTable setUserHeadPicUrl(String userHeadPicUrl) { this.userHeadPicUrl = userHeadPicUrl; return this; }
	
	@DatabaseField(columnName = DT_User_LoinNumber)
	private String userLoginNumber;
	public String getUserLoginNumber() { return userLoginNumber; }
	public UserTable setUserLoginNumber(String userLoginNumber) { this.userLoginNumber = userLoginNumber; return this; }
	
	/** 昵称 */
	@DatabaseField(columnName = DT_User_NickName)
	private String userNickName;
	public String getUserNickName() { return userNickName; }
	public UserTable setUserNickName(String userNickName) { this.userNickName = userNickName; return this; }
	
	@DatabaseField(columnName = DT_User_Phone)
	private String userPhone;
	public String getUserPhone() { return userPhone; }
	public UserTable setUserPhone(String userPhone) { this.userPhone = userPhone; return this; }

	@DatabaseField(columnName = DT_User_IDCard)
	private String userIDCard;
	public String getUserIDCard() { return userIDCard; }
	public UserTable setUserIDCard(String userIDCard) { this.userIDCard = userIDCard; return this; }
	

	@DatabaseField(columnName = DT_Ship_Name)
	private String shipName;
	public String getShipName() { return shipName; }
	public UserTable setShipName(String shipName) { this.shipName = shipName; return this; }
	
	@DatabaseField(columnName = DT_Ship_Type)
	private int shipType;
	public int getShipType() { return shipType; }
	public UserTable setShipType(int shipType) { this.shipType = shipType; return this; }
	
	@DatabaseField(columnName = DT_Ship_Weight_ORI)
	private int shipWeightOri;
	public int getShipWeightOri() { return shipWeightOri; }
	public UserTable setShipWeightOri(int shipWeightOri) { this.shipWeightOri = shipWeightOri; return this; }
	
	@DatabaseField(columnName = DT_Ship_RegisterNum)
	private String shipRegisterNum;
	public String getShipRegisterNum() { return shipRegisterNum; }
	public UserTable setShipRegisterNum(String shipRegisterNum) { this.shipRegisterNum = shipRegisterNum; return this; }
	
	@DatabaseField(columnName = DT_Ship_Weight_NOW)
	private int shipWeightNow;
	public int getShipWeightNow() { return shipWeightNow; }
	public UserTable setShipWeightNow(int shipWeightNow) { this.shipWeightNow = shipWeightNow; return this; }
	
	@DatabaseField(columnName = DT_Ship_LoadType)
	private int shipLoadType;
	public int getShipLoadType() { return shipLoadType; }
	public UserTable setShipLoadType(int shipLoadType) { this.shipLoadType = shipLoadType; return this; }
	
	@DatabaseField(columnName = DT_Ship_SafeLevel)
	private int shipSafeLevel;
	public int getShipSafeLevel() { return shipSafeLevel; }
	public UserTable setShipSafeLevel(int shipSafeLevel) { this.shipSafeLevel = shipSafeLevel; return this; }
	
	@DatabaseField(columnName = DT_Ship_SailStart)
	private String shipSailStart;
	public String getShipSailStart() { return shipSailStart; }
	public UserTable setShipSailStart(String shipSailStart) { this.shipSailStart = shipSailStart; return this; }
	
	@DatabaseField(columnName = DT_Ship_SailEnd)
	private String shipSailEnd;
	public String getShipSailEnd() { return shipSailEnd; }
	public UserTable setShipSailEnd(String shipSailEnd) { this.shipSailEnd = shipSailEnd; return this; }
	
	@DatabaseField(columnName = DT_Ship_SailOri)
	private int shipSailOrientation;
	public int getShipSailOrientation() { return shipSailOrientation; }
	public UserTable setShipSailOrientation(int shipSailOrientation) { this.shipSailOrientation = shipSailOrientation; return this; }
	
	@DatabaseField(columnName = DT_Ship_GoodsName)
	private String shipGoodsName;
	public String getShipGoodsName() { return shipGoodsName; }
	public UserTable setShipGoodsName(String shipGoodsName) { this.shipGoodsName = shipGoodsName; return this; }
	
	/** 处理进度 */
	@DatabaseField(columnName = DT_Ship_Process)
	private int shipProcess;
	public int getShipProcess() { return shipProcess; }
	public UserTable setShipProcess(int shipProcess) { this.shipProcess = shipProcess; return this; }
	
	/** 登记号 */
	@DatabaseField(columnName = DT_Ship_Order_Number)
	private String shipOrderNumber;
	public String getShipOrderNumber() { return shipOrderNumber; }
	public UserTable setShipOrderNumber(String shipOrderNumber) { this.shipOrderNumber = shipOrderNumber; return this; }
	
	/** 收费种类 */
	@DatabaseField(columnName = DT_Ship_Pay_Type)
	private int shipPayType;
	public int getShipPayType() { return shipPayType; }
	public UserTable setShipPayType(int shipPayType) { this.shipPayType = shipPayType; return this; }
	
	/**费用额度*/
	@DatabaseField(columnName = DT_Ship_Pay_Money)
	private int shipPayMoney;
	public int getShipPayMoney() { return shipPayMoney; }
	public UserTable setShipPayMoney(int shipPayMoney) { this.shipPayMoney = shipPayMoney; return this; }
	/** 票号 */
	@DatabaseField(columnName = DT_Ship_Ticket_Number)
	private String shipTicketNumber;
	public String getShipTicketNumber() { return shipTicketNumber; }
	public UserTable setShipTicketNumber(String shipTicketNumber) { this.shipTicketNumber = shipTicketNumber; return this; }

	
	@Override
	public String toString() {
		HashMap<String, Object> map = new HashMap<String, Object>(); 
		map.put(DT_ID, id);
		map.put(DT_User_HeadPicUrl, userHeadPicUrl);
		map.put(DT_User_LoinNumber, userLoginNumber);
		map.put(DT_User_NickName, userNickName);
		map.put(DT_User_Phone, userPhone);
		map.put(DT_User_IDCard, userIDCard);
		map.put(DT_Ship_Name, shipName);
		map.put(DT_Ship_Type, shipType);
		map.put(DT_Ship_Weight_ORI, shipWeightOri);
		map.put(DT_Ship_RegisterNum, shipRegisterNum);

		map.put(DT_Ship_Weight_NOW, shipWeightNow);
		map.put(DT_Ship_LoadType, shipLoadType);
		map.put(DT_Ship_SafeLevel, shipSafeLevel);
		map.put(DT_Ship_SailStart, shipSailStart);
		map.put(DT_Ship_SailEnd, shipSailEnd);
		map.put(DT_Ship_SailOri, shipSailOrientation);
		map.put(DT_Ship_GoodsName, shipGoodsName);
		map.put(DT_Ship_Process, shipProcess);
		map.put(DT_Ship_Order_Number, shipOrderNumber);
		map.put(DT_Ship_Pay_Type, shipPayType);
		map.put(DT_Ship_Pay_Money, shipPayMoney);
		map.put(DT_Ship_Ticket_Number, shipTicketNumber);
		
		return map.toString();
	}
}
